import {
	request
} from '@/api/request.js';

// 账号密码登录
export function SCM_login(data) {
	return request({
		url: "/v1/login",
		method: "POST",
		data: data
	});
}
// 退出登录
export function SCM_logout(data, user_id) {
	return request({
		url: "/v1/logout?user_id=" + user_id,
		method: "POST",
		params: data
	});
}
// 验证码登录
export function SCM_login_sms(data) {
	return request({
		url: "/v1/login_sms",
		method: "POST",
		data: data
	});
}
// 发送验证码
export function SCM_send_sms(data) {
	return request({
		url: "/v1/send_sms",
		method: "GET",
		params: data
	});
}
// 供应商列表
export function SCM_scmList(data) {
	return request({
		url: "/v1/api/list",
		method: "POST",
		data: data
	});
}
// 供应商详情
export function SCM_scmDetails(data) {
	return request({
		url: "/v1/api/detail",
		method: "GET",
		params: data
	});
}
// 详情页图片资料补充
export function SCM_save_image(data) {
	return request({
		url: "/v1/api/save_image",
		method: "POST",
		data: data
	});
}
// 供应商-核价确认
export function SCM_save_sure_price(data) {
	return request({
		url: "/v1/api/save_sure_price",
		method: "POST",
		data: data
	});
}
// 供应商-修改价格
export function SCM_save_update_price(data) {
	return request({
		url: "/v1/api/update_price",
		method: "POST",
		data: data
	});
}
// 供应商-确认生产
export function SCM_scmprod(data) {
	return request({
		url: "/v1/api/save_scheduling",
		method: "GET",
		params: data
	});
}
// 生产完成可配送
export function SCM_scmDone(data) {
	return request({
		url: "/v1/api/save_deliverable",
		method: "GET",
		params: data
	});
}
// 配送完成
export function SCM_save_deliverable_completion(data) {
	return request({
		url: "/v1/api/save_deliverable_completion",
		method: "GET",
		params: data
	});
}
// 催单验收 发送短信
export function SCM_send_msg(data) {
	return request({
		url: "/v1/api/store/send_msg",
		method: "POST",
		data: data
	});
}
// 供应商-收款
export function SCM_scm_money(data) {
	return request({
		url: "/v1/api/money",
		method: "POST",
		data: data
	});
}
// 供应商-收款导出
export function SCM_scm_export_money(data) {
	return request({
		url: "/v1/api/export_money",
		method: "POST",
		data: data
	});
}